import { Result, Button } from "antd"
import { useNavigate } from "react-router-dom"
function NotFound() {
    const navigate = useNavigate()
    const handleClick = () => {
        navigate("/")
    }
    return (
        <Result
            status={403}
            title="403"
            subTitle="抱歉，您当前没有权限访问此页面"
            extra={
                <Button type="primary" onClick={handleClick}>
                    返回首页
                </Button>
            }
        />
    )
}

export default NotFound
